export function emit(context, eventName, ...args) {
    const listeners = context.$listeners[eventName];

    if (listeners) {
        if (Array.isArray(listeners)) {
            listeners.forEach(listener => {
                listener(...args);
            });
        } else {
            listeners(...args);
        }
    }
}

// import Emitter from 'element-ui/src/mixins/emitter';
// mixins: [Emitter]
